
<div class="client-item">

    <div class="client-item-inner" *ngIf="!item.isSearchWrapper" (click)="goToDetail(item)">
        <div class="client-head">
            <button class="l-message">
                <i class="client-icon"
                   [ngClass]="{'male':item.sex == 'M','female':item.sex == 'F'}">
                    <input type="hidden" [(ngModel)]="item.clientId">
                </i>
            </button>
        </div>
        <div class="vip-flag-wrapper">
        </div>
        <div class="client-remark">
            <div class="title-row">
                <div class="item name" [ngClass]="{'is-death':item.deathFlag === 'Y'}">
                <!--<div class="item name is-death">-->
                    {{item.name}}
                </div>
                <div class="item age">
                    {{item.age ? item.age + '岁' : item.age}}
                </div>
            </div>

            <ng-content select=".policy"></ng-content>
            <ng-content select=".annually-premiums"></ng-content>
            <ng-content select=".renewal.annual-fee"></ng-content>
            <ng-content select=".compensation"></ng-content>

            <div class="birth-row" *ngIf="item.birthdayDescribe"
                 [ngClass]="item.birthdayDescribe.level">
                <i class="gift"></i>
                <span>
                        {{item.birthdayDescribe.value}}
                    </span>
            </div>

            <div class="i-p-wrapper" *ngIf="isShowIp && item.clientRole">
                <span *ngIf="item.clientRole.indexOf('O') > -1" class="i-icon">
                </span>
                <span *ngIf="item.clientRole.indexOf('I') > -1" class="po-icon">
                </span>
            </div>

        </div>

        <div class="fun-wrapper" (click)="funcWrapperClick($event)">
            <ng-content select=".renewal-details"></ng-content>
            <button [disabled]="(!item.mobilePhone || !item.mobilePhone.length) && (!item.mobileList || !item.mobileList.length)" ion-button class="call"
                    (click)="callClickHandle($event,item)">
                通话
            </button>
        </div>

        <div class="client-vip-flag"
             [ngClass]="{'gold':item.vipFlag == 1,'platinum':item.vipFlag == 2,'diamond':item.vipFlag == 3,'supreme':item.vipFlag == 4}">
        </div>
    </div>

</div>
